@csrf
<div class="layui-form-item">
    <label for="name" class="layui-form-label">类型</label>
    <div class="layui-input-block">
        <select name="type" class="layui-select">
            <option value="COMPANY" {{$enterprise->type=='COMPANY'?'checked':''}}>公司</option>
            <option value="COLLEGE" {{$enterprise->type=='COLLEGE'?'checked':''}}>高校</option>
        </select>
    </div>
</div>
<div class="layui-form-item">
    <label for="name" class="layui-form-label">名称</label>
    <div class="layui-input-block">
        <input type="text" class="layui-input" name="name" value="{{$enterprise->name??''}}">
    </div>
</div>
<div class="layui-form-item">
    <label for="target_url" class="layui-form-label">跳转地址</label>
    <div class="layui-input-block">
        <input type="text" class="layui-input" name="target_url" value="{{$enterprise->target_url??''}}">
    </div>
</div>
<div class="layui-form-item">
    <label for="order_id" class="layui-form-label">排序</label>
    <div class="layui-input-block">
        <input type="text" class="layui-input" name="order_id" value="{{$enterprise->order_id??''}}">
    </div>
</div>
<div class="layui-form-item">
    <label for="" class="layui-form-label">图片</label>
    <div class="layui-input-block">
        <button type="button" class="layui-btn" id="img_file">
            <i class="layui-icon">&#xe67c;</i>上传图片
        </button>
        <input type="hidden" class="req-data" name="img_url" id="img_url" value="{{$enterprise->img_url}}">
        <p id="upload-tip" style="display:none">上传中</p>
        <img id="slide_img" width="300" src="{{$enterprise->img_url}}" />
    </div>
</div>
